package ui;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.IUserService;

/**
* 模拟客户端访问
*/
public class TestClient {

   public static void main(String[] args) {
       BeanFactory beanFactory = new ClassPathXmlApplicationContext("bean.xml");
       IUserService userService = (IUserService)beanFactory.getBean("userService");

       userService.saveUser();
  }
}